package com.zhixiao.user.config

import org.mybatis.spring.annotation.MapperScan
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.Profile

/**
 * Mybatis配置类
 * 当Spring环境为prod时, 才会扫描Mapper接口并启用Mybatis自动映射xml文件
 */
@Configuration
@MapperScan("com.zhixiao.user.mapper")
@Profile("prod")
class MybatisConfig
